<template>
  <div class="chat_box f-column ai-c">
    <div class="title txt-c">在线咨询</div>
    <div class="chat br-1">
      <div class="top pt-re">
        <!-- <div class="zhengzaizixun txt-c">
          正在咨询中，此咨询将在23小时后结束
        </div> -->
        <!-- <div class="zhengzaizixun">
          <div class="top_zixun txt-c"><b> &nbsp;·&nbsp;</b>等待接诊中</div>
          <div class="btm_zixun">请在24小时内接诊，超时将自动退诊</div>
        </div> -->
        <!-- <div class="btm_zixun">咨询已结束，感谢您的使用！</div> -->
        <div class="zhengzaizixun txt-c">
          <b> &nbsp;·&nbsp;</b>正在咨询中，此咨询将在23小时候结束
        </div>
        <div class="p-1" style="overflow: hidden">
          <div class="me">
            <div class="talk-bubble chufan tri-right round right-in">
              <div class="talktext chufang_box">
                <div class="chufangImg">
                  <div class="showchufang">查看处方</div>

                  <img src="../../assets/images/others/kaichufang.png" alt="" />
                </div>
                <div class="zhengzhuang">症状： <span> 过于肥胖 </span></div>
              </div>
            </div>
            <el-avatar :src="login_info.face"></el-avatar>
          </div>
          <div class="me">
            <div class="talk-bubble tri-right round right-in">
              <div class="talktext">
                <p>请问最近是什么症状？</p>
              </div>
            </div>
            <el-avatar :src="login_info.face"></el-avatar>
          </div>
          <div class="you">
            <el-avatar icon="el-icon-user-solid"></el-avatar>
            <div class="talk-bubble tri-left round left-in">
              <div class="talktext">
                最近脖颈很酸痛，一直得不到缓解也想锻炼一下身体就是想全方位的提升一下身体素质
              </div>
            </div>
          </div>
        </div>
        <div class="prescription">开具处方</div>
      </div>
      <div class="bottom bs-bb p-1 pt-re">
        <div class="img">
          <i class="el-icon-picture-outline"></i>
          <i class="el-icon-files ml10"></i>
        </div>
        <textarea placeholder="点击输入文字..."></textarea>
        <div class="btn-deep">发送</div>
      </div>
    </div>
  </div>
</template>
<script>
import { mapState } from "vuex";
export default {
  data() {
    return {};
  },

  computed: {
    ...mapState(["expert_info", "login_info"]),
  },
  methods: {},
  mounted: function () {},
};
</script>
<style lang="less" scoped>
.showchufang {
  width: 6.25rem;
  height: 2.25rem;
  border: 0.0625rem solid #ffffff;
  border-radius: 1.125rem;
  color: #ffffff;
  text-align: center;
  line-height: 2.25rem;
  position: absolute;
  right: 1.875rem;
  top: 50%;
  transform: translateY(-50%);
}
.chufang_box {
  padding: 0 !important;
  position: relative;
}
.zhengzhuang {
  background: #f5f5f5 !important;
  -webkit-border-radius: 0 0 0.625rem 0.625rem;
  border-radius: 0 0 0.625rem 0.625rem;
  padding: 1.25rem;
  font-size: 1.25rem;
  text-align: left !important;
  span {
    color: #176eff;
  }
}
.chufan {
  background: #2375ff !important;

  padding: 0 !important;
}
.chufan:after {
  border-color: transparent transparent transparent #2375ff !important;
}
.chufangImg {
  height: 3.875rem;
  -webkit-border-radius: 0.625rem 0.625rem 0 0;
  border-radius: 0.625rem 0.625rem 0 0;
  width: 28.75rem;
  position: relative;
  img {
    width: 10.8125rem;
    height: 3.3125rem;
    position: absolute;
    top: 0.5625rem;
    left: 1.375rem;
  }
}
.prescription {
  width: 7.5rem;
  height: 2.5rem;
  background: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(102, 102, 102, 0.3);
  border-radius: 1.25rem;
  position: absolute;
  right: 1.875rem;
  bottom: 1.875rem;
  z-index: 999;
  font-weight: 500;
  color: #2375ff;
  line-height: 2.5rem;
  text-align: center;
  cursor: pointer;
}
.top_zixun {
  height: 3.125rem;
  line-height: 3.125rem;
  background: #ecfaf4;
  border-radius: 0.625rem 0.625rem 0 0;
  position: static;
  top: 0;
  left: 0;
  color: #35b572;
  z-index: 99;
}
.btm_zixun {
  width: 73.375rem;
  height: 2.5rem;
  background: #dedede;
  border-radius: 0.3125rem;
  text-align: center;
  line-height: 2.5rem;
  color: #ffffff;
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}
.zhengzaizixun {
  position: static;
  top: 0;
  left: 0;
  font-weight: 500;
  height: 3.125rem;
  color: #f47333;
  background: #fff2e3;
  line-height: 3.125rem;
  border-radius: 0.625rem 0.625rem 0 0;
  z-index: 99;
}
.btn-deep {
  position: absolute;
  right: 0.625rem;
  bottom: 1rem;
}
textarea {
  border: none;
  margin-top: 0.625rem;
  resize: none;
  outline: none;
  width: 100%;
  /*  height: 9rem; */
  height: calc(100% - 6rem);
}
.me {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.you {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.talk-bubble {
  margin: 1.25rem;
  width: fit-content;
  width: -webkit-fit-content; //苹果浏览器兼容
  width: -moz-fit-content; //火狐浏览器兼容
  display: inline-block;
  position: relative;
  background-color: #f5f5f5;
}
.talktext {
  padding: 1em;
  text-align: right;
  line-height: 1.5em;
  color: #333333;
}
.round {
  border-radius: 0.625rem;
  -webkit-border-radius: 0.625rem;
  -moz-border-radius: 0.625rem;
}
.tri-right {
}
.tri-right.right-in:after {
  content: " ";
  position: absolute;
  width: 0;
  height: 0;
  right: -20px;
  top: 0.625rem;
  bottom: auto;
  border: 12px solid;
  border-color: transparent transparent transparent #f5f5f5;
}
.tri-left.left-in:after {
  content: " ";
  position: absolute;
  width: 0;
  height: 0;
  left: -20px;
  top: 0.625rem;
  bottom: auto;
  border: 12px solid;
  border-color: transparent #f5f5f5 transparent transparent;
}

//-------------

.title {
  font-size: 1.75rem;
  font-weight: 500;
  color: #333333;
}
.chat {
  height: 100%;
  width: 87.5rem;
  /*  min-height: 46rem; */
  border: 0.0625rem solid #e3e3e3;
  box-sizing: border-box;
}
.chat_box {
  height: 100%;
  /* width: 100%;
  height: 47rem;
  box-sizing: border-box;
  border: solid; */
}
.top {
  height: 65%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-bottom: 0.0625rem solid #e3e3e3;
}
.bottom {
  height: 35%;
  .img {
    > i {
      font-size: 1.4rem;
      color: #666;
    }
  }
}
.ml10 {
  margin-left: 1rem;
}
</style>